<?php
/**
 * 首页接口
 */
require(dirname(dirname(__FILE__))."/includes/initInterface.php");
require(dirname(dirname(__FILE__))."/includes/cls_mainModel.php");
$action  = isset($_REQUEST['act']) ? trim($_REQUEST['act']) : '';
$article  = new Main();
$article->$action();
Class Main {
	private $m;//自己的model
	private $jsonp;
	public function __construct(){

		$this->jsonp = new JSONP();
		//基础信息构建
		$this->m = new mainModel();
		//微信分享参数构建
	}
	
	public function getMainInfo(){
		global $_CODE;
		$res = $this->m->get_main_info();
		die($this->jsonp->JSONP($_CODE['MAIN_GETMAININFO_SUCCESS'],$res));
	}
}